import { ApiProperty, PartialType } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';

export class CatDto {
  @ApiProperty({ description: 'id' })
  @IsOptional()
  id: string;

  @ApiProperty({ description: '名称' })
  CatName?: string;
}

export class CatUpdateDto extends PartialType(CatDto) {}
